<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>四大天王</title>
    <style>
        ul{
            list-style: none;
        }
        li{
            float:left;
            width: 200px;
            margin-right: 20px;
        }
    </style>
</head>
<body>
    <ul>
        <li><img width="100%" src="./images/guofucheng.jpg" alt=""></li>
        <li><img width="100%" src="./images/liudehua.jpg" alt=""></li>
        <li><img width="100%" src="./images/liming.jpg" alt=""></li>
        <li><img width="100%" src="./images/zhangxueyou.jpg" alt=""></li>
    </ul>

    <script>
        window.onresize = function(){
            console.log(
                `当前布局视口的宽度: ${document.documentElement.clientWidth}当前视觉视口的宽度: ${window.visualViewport.width}
              `)
            }
    </script>
</body>
</html>